<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>面试结果登记</title>
    <link rel="stylesheet" type="text/css" href="layui/dist/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="css/面试结果登记.css" />
    <link rel="icon" type="image/png" href="icon/I.png">
    <script src="js/jquery.min.js"></script>
    <script src="js/train1.js"></script>

</head>
<style>
    table tr th{
        text-align: center !important;
        font-weight: bold !important;
    }
    tr td{
        text-align: center
    }
</style>
<body>
<div class="box1" style="background: rgb(241, 241, 241) !important;width: 98%; margin: 0 auto" >
    <br>
    <!-- 下拉框第1点 -->

    <form class="layui-form" id="duowenjian" method="post" enctype="multipart/form-data">
       <input id="trainId" type="text" hidden th:value="${train.getTrainId()}">
        <table class="layui-table">
            <tr>
                <td>培训名称：</td>
                <td>
                    <!-- 下拉框第2点 -->
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <input type="text" class="name layui-input" th:value="${train.getName()}"/>
                        </div>
                    </div>

                </td>
                <td>培训讲师：</td>
                <td>
                    <!-- 下拉框第2点 -->
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <input type="text" class="teacher layui-input" th:value="${train.getTeacher()}"/>
                        </div>
                    </div>

                </td>
                <td>培训开始时间：</td>
                <td>
                    <input type="text" class="startTime layui-input" th:value="${train.getStartTime()}" />
                </td>
                <td>培训结束时间：</td>
                <td>
                    <input type="text" class="endTime layui-input" th:value="${train.getEndTime()}"/>
                </td>

            </tr>


            <tr>
                <td>参训人员：</td>
                <td colspan="8">
                    <input type="text" class="people layui-input" th:value="${train.getPeople()}"/>
                </td>
            </tr>
            <tr>
                <td >培训目的：</td>
                <td colspan="8">
                    <textarea class="layui-textarea goal" cols="20px" th:text="${train.getGoal()}"></textarea>
                </td>
            </tr>
            <tr>
                <td >培训简介：</td>
                <td colspan="8">
                    <textarea class="layui-textarea introduction" cols="20px" th:text="${train.getIntroduction()}"></textarea>
                </td>
            </tr>
            <tr>
                <td>培训资料</td>
                <td colspan="8">
<!--                    <input type="file" class="layui-input data" th:value="${train.getData()}">-->
                    <div style="width: 300px;height: 38px">
                        <a th:href="@{/train/download(trainId=${train.trainId}, openStyle='inline')}" th:text="${train.getData()}"></a>
                    </div>
                </td>
                <!--                <td colspan="5">-->
                <!--                    <input type="file" class="layui-file ">-->
                <!--                </td>-->
            </tr>
            <tr>
                <td >审核意见：</td>
                <td colspan="8">
                    <textarea class="layui-textarea" id="opinion" cols="20px" ></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="8" align="center">

                    <button onclick="tongguo()" type="button" class="layui-btn layui-btn-warm ">通过</button>
                    <button type="button" class="layui-btn layui-btn-normal " style="margin-left:40px" onclick="location.href='/培训计划'">返回</button>
                    <button onclick="bohui()"type="button" class="layui-btn layui-btn-danger " style="margin-left:40px">驳回</button>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
<script src="layui/src/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>

<!-- 下拉框第3点 -->
<script>
    layui.use('form', function() {
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

        //……

        //但是，如果你的HTML是动态生成的，自动渲染就会失效
        //因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
        form.render();
    });
</script>
</html>
